/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package boundaries;

import entities.User;
import javax.enterprise.context.RequestScoped;
import javax.faces.context.FacesContext;
import javax.inject.Named;

/**
 *
 * @author Alberto, Alessandra
 */
@Named
@RequestScoped
public class UserProfileBean {
    
    private User user;
    
    public UserProfileBean() {
        this.user = (User) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("selecteduser");
    }
    
    public User getUser() {
        return user;
    }
    
}
